import request from '@/utils/request';

export function selectAll() {
    return request({
        url: `/MaintenanceRecord/bczhuyou/selectAll`,
        method: 'get'
    });
}

export function addBczhuyou(data) {
    return request({
        url: `/MaintenanceRecord/bczhuyou/add`,
        method: 'post',
        data: data
    });
}

export function updateBczhuyou(bczyid, data) {
    return request({
        url: `/MaintenanceRecord/bczhuyou/update/${bczyid}`,
        method: 'put',
        data: data
    });
}

export function deleteBczhuyou(bczyid) {
    return request({
        url: `/MaintenanceRecord/bczhuyou/delete/${bczyid}`,
        method: 'delete'
    });
}

export function downloadBczhuyou() {
    return request({
        url: `/MaintenanceRecord/bczhuyou/download`,
        method: 'GET',
        responseType: 'blob'
    });
}